package com.es.util;


import java.util.List;

import org.apache.log4j.Logger;

import com.es.bo.ValueBO;
import com.es.model.Value;


/**
 * @author Bushra
 *
 */
public class DTOToBOConvertor {

	private static final Logger log = Logger.getLogger(DTOToBOConvertor.class);
	


	public static void convertValueListToValueBOList (List<Value> valueList, List <ValueBO> valueBOList){

		for ( int i=0; i< valueList.size(); i++){

			ValueBO  valueBO = new ValueBO();			
			convertValueToValueBO (valueList.get(i), valueBO  );
			valueBOList.add(valueBO);
		}

	}



	public static void convertValueToValueBO( Value  value, ValueBO valueBO ){

		valueBO.setValueId(value.getValueId());
		valueBO.setIsenabled(value.getIsenabled());
		valueBO.setPropertyId(value.getPropertyId());
		valueBO.setValue(value.getValue());

	}

}
